package com.sitia.jd.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sitia.common.annotation.Excel;
import com.sitia.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * mx订单历史对象 mx_order_his
 * 
 * @author sitia
 * @date 2024-09-07
 */
@Data
@Accessors(chain = true)
public class MxOrderHis extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 历史id */
    @TableId(type = IdType.INPUT)
    private Long hisId;

    /** 订单id */
    private String id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 预定抢购时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预定抢购时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date presetTime;

    /** 京东账号 */
    @Excel(name = "京东账号")
    private String jdAccount;

    /** 用户cookie */
    @Excel(name = "用户cookie")
    private String cookie;

    /** cookie登记时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "cookie登记时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cookieRecordTime;

    /** 咸鱼账号 */
    @Excel(name = "咸鱼账号")
    private String fishAccount;

    /** 客户姓名 */
    @Excel(name = "客户姓名")
    private String customerName;

    /** 收货地址 */
    @Excel(name = "收货地址")
    private String address;

    /** 电话 */
    @Excel(name = "电话")
    private String phoneNumber;

    /** 免息券类型 */
    @Excel(name = "免息券类型")
    private String mxType;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String status;

    /** 用户id(客户id) */
    @Excel(name = "用户id(客户id)")
    private String createUserId;

    /** 单件商品原价 */
    @Excel(name = "单件商品原价")
    private BigDecimal goodsOriginalPrice;

    /** 单件商品现价 */
    @Excel(name = "单件商品现价")
    private BigDecimal goodsNowPrice;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Integer goodsAmount;

    /** 订单总价 */
    @Excel(name = "订单总价")
    private BigDecimal orderPrice;

    /** 返现 */
    @Excel(name = "返现")
    private BigDecimal cashback;

    /** 订单实际收入 */
    @Excel(name = "订单实际收入")
    private BigDecimal realIncome;

    /** 订单归属人id（我或小孩） */
    @Excel(name = "订单归属人id", readConverterExp = "我=或小孩")
    private Long ownerUserId;

    /** 登陆状态 */
    @Excel(name = "登陆状态")
    private String loginStatus;

    /** 订单完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date completeTime;

    /** 是否添加返利(0-否，1是) */
    @Excel(name = "是否添加返利(0-否，1是)")
    private String addRebate;

    /** 商品链接 */
    @Excel(name = "商品链接")
    private String goodsUrl;

    /** 返利链接 */
    @Excel(name = "返利链接")
    private String rebateUrl;

    /** 免息券来源 */
    @Excel(name = "免息券来源")
    private String mxSource;

    /** 归档时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "归档时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date archiveTime;

    /** 归档人id */
    @Excel(name = "归档人id")
    private String archiveUserId;

    /** 归档人 */
    @Excel(name = "归档人")
    private String archiveUserName;

}
